#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Audacious (At Least For Now) Mini-Karaoke 0.1
# (C) Copyright 2008 - Francisco Huhn <tharis20 AT gmail dot com>
# http://www.Portugal-a-Programar.Org
# #p@p @ IRC.PTNet.Org
#
# Thanks:
#     - David Ferreira aka djthyrax: for having written Audacious
#                      XChat announcer in Python, where I could
#                      get some code for this project.
#       http://djthyrax.googlepages.com/audaciousxchatannouncer
#
#     - Michael Hudson: for having written a module to get info
#                       from some Media Players, where I ripped
#                       and modified some code to write Player.py
#       http://www.python.net/crew/mwh/hacks/xmms-py.html
#
#     - Guido van Rossum: for having created the great language
#                         that I truly LOVE! :)
#       http://www.python.org


triton thanks:

	- Fellow hackers @ #gtk (GNOME IRC)
		- davyd
		- trystan
		- squentin
		- more I don't remember


# Find this program @ http://code.google.com/p/name_of_project

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# This version of this project was fully written by me (Tharis)
#
# LRCParser Fully Written By Me
#
# Player Module was based on Michael Hudson's module and
# some lines from djthyrax's XChat Announcer
#
# GUI created using wxGlade. wxGlade generated code
# which I modified, only remaining Karaoke.layout
# function and the next line:
# generated by wxGlade 0.6.3 on Sat Dec 13 00:17:48 2008

# This project uses a database (source.kdb) with the format:
"""Interpreter - Album - Song Name
Correspondant .srt file"""
# ^ TO CHANGE

# The first line must be equal to the one given
# by Finder.Find().Current()

# Dependencies:
# Linux Distro
# Python 2.X (where X is a number between 3 and 6)
# wxPython 2.8

# If in Debian or Ubuntu, just type:
# "sudo apt-get install python-wxgtk2.8 python2.5"
# (quote marks for clarification)

# To run the program you only need to type in some shell
# "python kroke.py" (quote marks for clarification)

# The program has these main steps:
# - Create the GUI (Frame with the TextCtrl)
# - Fetch (Read) the Database
# - Check Song Playing
# - If there's an .LRC for the current song:
#     - Check elapsed time
#     - Search the nearest greater lyric start time
#     - Sleep the difference between the lyric
#       start time and elapsed time
#     - Run Lyrics
# - Else
#     - Puts "No Karaoke File For This Song"
#       in the TextCtrl
#     - 1 Second Loops (Playlist Advance)
